import request from '@/utils/request'

// 查询文件讨论-评论内容列表
export function listDiscussComments(query) {
  return request({
    url: '/discussComments/discussComments/list',
    method: 'get',
    params: query
  })
}

// 查询文件讨论-评论内容列表 不分页
export function listDiscussCommentsAll(query) {
  return request({
    url: '/discussComments/discussComments/findList',
    method: 'get',
    params: query
  })
}

// 查询文件讨论-评论内容详细
export function getDiscussComments(id) {
  return request({
    url: '/discussComments/discussComments/' + id,
    method: 'get'
  })
}

// 保存文件讨论-评论内容
export function saveDiscussComments(data) {
  return request({
    url: '/discussComments/discussComments/save',
    method: 'post',
    data: data
  })
}

// 删除文件讨论-评论内容
export function delDiscussComments(id) {
  return request({
    url: '/discussComments/discussComments/' + id,
    method: 'delete'
  })
}
